Skip to main content

vpnPyg2Sub

Description

creation of pay-as-you-go subcontracting monthly order for vpn.

Request Method

POST

Request Path

/customer/vpn/switch/pyg2sub/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
periodBODYintegerYesNo sample value for this parameter.period
costBODYnumberYesNo sample value for this parameter.cost
instanceIdBODYstringYesNo sample value for this parameter.instance id
regionIdBODYstringYesNo sample value for this parameter.region id
billingMethodBODYstringYesNo sample value for this parameter.billing method
pricingCycleBODYstringYesNo sample value for this parameter.pricing cycle

Return data

NameTypeSample valueDescription
resultobject`{"orderId":"2023011313020100001"}`No description for this parameter.
resultCodestring0No description for this parameter.
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"orderId":"2023011313020100001"
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}